﻿namespace MagicWatering.Data.DataModel
{
    using System.Collections.Generic;
    using System.Runtime.Serialization;

    [DataContract]
    public class WateringProgram
    {
        #region Constructors and Finalizers

        /// <summary>
        ///     Creates new program for the particular start time.
        /// </summary>
        /// <param name="lines"></param>
        public WateringProgram(List<WateringLine> lines) : this()
        {
            WateringLines = lines;
        }

        public WateringProgram()
        {
            WateringLines = new List<WateringLine>();
        }

        #endregion

        #region Public Properties

        [DataMember]
        public List<WateringLine> WateringLines
        {
            get;
            private set;
        }

        #endregion
    }
}